package com.virgo.demo.cms.domain.bo;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ArticleBo implements Serializable {

	@Serial
	private static final long serialVersionUID = 1L;

	private Long id;

	@NotBlank(message = "分类不能不能为空")
	private String cateCode;

	@NotBlank(message = "文章标题不能为空")
	private String name;

	@NotBlank(message = "文章作者不能为空")
	private String author;

	private String img;

	private String brief;

	private String seoKeywords;

	private String seoDescription;

	@NotNull(message = "状态不能为空")
	private Integer status;

	private Integer sort;

	private String content;
}